<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="security" uri="http://www.enersun.com.cn/security"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/base/jsp/common/CommonListTop.jsp"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<title>超级信息系统</title>
  <link rel="stylesheet" href="${ctx}/baseNew/other/css/font-awesome.min.css" >
<link href="${ctx}/zenithsun/css/admin-login.css" type="text/css" rel="stylesheet">
<script src="${ctx}/base/js/jquery/jquery.js" type="text/javascript"></script>
</head>
<body scroll="no">
<form name="loginForm" id="loginForm" method="post" action="${ctx}/sys/login/login">
 <security:CSRF/>
<!-- <form name="loginForm" id="loginForm" method="post" action="${ctx}/path/SnapshotFileAction!checkLogin2.action">  -->
<table width="100%" style="margin-top:120px;" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="middle" style="background:url(${ctx}/base/images/${customTheme}/loginBg.gif) repeat-x bottom;"><table width="1003" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="513"><img src="${ctx}/base/images/${customTheme}/Login01.jpg" width="513" height="116" /></td>
    <td width="298"><img src="${ctx}/base/images/${customTheme}/Login02.jpg" width="298" height="116" /></td><td></td>
  </tr>
  <tr>
    <td><img src="${ctx}/base/images/${customTheme}/Login03.gif" width="513" height="224" /></td>
    <td><table width="100%" style="height:224px; background:#fff; border-left:1px solid #cacaca; border-right:1px solid #cacaca;" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="2">&nbsp;</td>
        </tr>
      <tr>
        <td width="88" align="center"><img src="${ctx}/base/images/${customTheme}/LoginZH.gif" width="58" height="28" alt="账号" /></td>
        <td><input type="text" name="cant" id="cant" class="loginInput"/></td>
      </tr>
      <tr>
        <td align="center"><img src="${ctx}/base/images/${customTheme}/LoginMM.gif" width="58" height="28" alt="密码" /></td>
        <td><input type="password" name="logpa" id="logpa" class="loginInput"/></td>
      </tr>
      <tr>
       <td align="center"><img src="${ctx}/base/images/${customTheme}/LoginYZM.gif" width="58" height="28" alt="验证码"/></td>
       <td><input type="text" name="verifyCode" id="verifyCode" class="verifyCodeInput" width="60" maxlength="4"/>&nbsp;<img src="${ctx}/servlet/verifyCodeImage.servlet" align="absmiddle"/></td>
      </tr>
      <tr>
        <td colspan="2" align="center"><input type="image" src="${ctx}/base/images/${customTheme}/BtnLogin.gif" width="136" height="43" /></td>
        </tr>
    </table></td><td><img src="${ctx}/base/images/${customTheme}/Login05.gif" width="84" height="224" /></td>
  </tr>
</table>
</td>
  </tr>
  <tr>
    <td align="center"><img src="${ctx}/base/images/${customTheme}/Login04.gif" height="19" /></td>
  </tr>
</table>
<p style="margin-top:70px;font-size:12px; text-align:center">&nbsp;</p>
</form>
<script language="JavaScript">
$("#account").focus();

<c:if test='${mustLogin eq "true"}'>
$("#loginForm").submit(
    function() {
	    if($("#account").val()=='') {
		    alert("请输入账号！");
		    $("#account").focus();
		    return false;
	    }
	    if($("#password").val()=='') {
		    alert("请输入密码！");
		    $("#password").focus();
		    return false;
	    }
	    /*if($("#verifyCode").val()=='' ) {
		    alert("请输入验证码！");
		    $("#verifyCode").focus();
		    return false;
	    }*/
	    return true;
    }
);
</c:if>
</script>

<%@ include file="/base/jsp/common/CommonListFoot.jsp"%>
</body>
</html>